package com.itheima.extendsTest.demo_2;

public class staff {
    private String name;
    private int jobNumb;
    private String salary;

    public staff() {
        this("张三",001,"2.5w");
    }

    public staff(String name, int jobNumb, String salary) {
        this.name = name;
        this.jobNumb = jobNumb;
        this.salary = salary;
    }

    public void work() {
        System.out.println("管理其他人");
    }

    public void eat() {
        System.out.println("吃米饭！");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getJobNumb() {
        return jobNumb;
    }

    public void setJobNumb(int jobNumb) {
        this.jobNumb = jobNumb;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }
}
